//
//  TSReceiveDetailController.m
//  chart
//
//  Created by 曾斌 on 16/4/11.
//  Copyright (c) 2016年 xu. All rights reserved.
//

#import "TSReceiveDetailController.h"

@implementation TSReceiveDetailController


-(UIActionSheet *)createActionSheet
{
    WS(weakSelf);
    return [[UIActionSheet alloc] initWithTitle:nil delegate:weakSelf cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles:@"提交任务",@"拆分任务",@"查看进度",@"查看监督人",@"查看审核人",@"查看建议列表",@"发起协同",@"工作汇报",@"任务主线", nil];
}

#pragma mark - UIActionSheetDelegate
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
    if (buttonIndex == 0) {
        //提交任务
        [super commitTask];
    }else if (buttonIndex == 1) {
        [super splitTask];
    }else if(buttonIndex == 2){
        [super getProgress];
    }
    else if(buttonIndex == 3){
        [super showSupervisers];
    }
    else if(buttonIndex== 4){
        [super showAuditors];
    }
    else if(buttonIndex== 5){
        [super showSuggest];
    }
    else if(buttonIndex== 6){
        [super addSuperviors];
    }
    else if(buttonIndex== 7){
        [super addSuperviors];
    }
    else if(buttonIndex== 8){
        [super showTaskWebMain];
    }

}


@end
